import http from '../js/http'
//
/**
 *  @parms resquest 请求地址 例如：http://197.82.15.15:8088/request/...
 *  @param '/testIp'代表vue-cil中config，index.js中配置的代理
 */
// let resquest = "http://192.168.110.110/api"
let resquest = "http://8.136.222.20:8081/sange"

// get请求
export default{

    //获取签名
    getSignature(params){
        return http.get(`${resquest}/user/getconfig/`,params)
    },
    //获取签名
    getOpenId(params){
        return http.get(`${resquest}/user/get_open_id/`,params)
    },
    /*
    登陆相关
     */
   //获取验证码 params:telphone
    getMessageCode(params){
        return http.get(`${resquest}/user/send_message/`,params)
    },
    //获取验证码 params:
    postRegistered(params){
        return http.post(`${resquest}/user/regest/`,params)
    },
    //user/gethouse/
    postGetHouse(params){
        return http.post(`${resquest}/user/gethouse/`,params)
    },

    productList(params){
        return http.post(`${resquest}/productList/`,params)
    },
    imgList(params){
        return http.post(`${resquest}/imgList/`,params)
    },
    modifyShopCart(params){
        return http.post(`${resquest}/modifyShopCart/`,params)
    },
    //获取分类
    postTypeList(params){
        return http.post(`${resquest}/admin/typeList`,params)
    },
    // 添加分类
    addGoodsTypes(params){
        return http.post(`${resquest}/admin/addType/`,params)
    },
    getsaf(params){
        return http.post(`${resquest}/getgoods/`,params)
    },







}


